<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTableAddress extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        ///创建表   address是你的表名        
        Schema::create('address', function (Blueprint $table) {            
            //increments  string  timestamps 类型            
            $table->increments('id');            
            $table->string('adds');            
            $table->string('name');            
            $table->string('phone');            
            $table->string('user_id');            
            $table->string('huo');
        });                
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //删除表        
        Schema::drop('address'); 
    }
}
